package cn.bizzan.ui.ctc;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import cn.bizzan.R;
import cn.bizzan.app.Injection;
import cn.bizzan.base.BaseActivity;
import cn.bizzan.ui.home.FiveFragment;
import cn.bizzan.ui.home.FourFragment;
import cn.bizzan.ui.home.presenter.FourPresenter;

//法币交易界面
public class FrenchCurrencyTransactionActivity extends BaseActivity {
    public static void actionStart(Context context) {
        Intent intent = new Intent(context, FrenchCurrencyTransactionActivity.class);
        context.startActivity(intent);
    }
    @Override
    protected int getActivityLayoutId() {
        return R.layout.activity_french_currency_transaction;
    }

    @Override
    protected void initViews(Bundle savedInstanceState) {
        FourFragment fourFragment = new FourFragment();
        new FourPresenter(Injection.provideTasksRepository(getApplicationContext()), fourFragment);
        getSupportFragmentManager()    //
                .beginTransaction()
                .add(R.id.fragment_container,fourFragment)   // 此处的R.id.fragment_container是要盛放fragment的父容器
                .commit();
    }

    @Override
    protected void obtainData() {

    }

    @Override
    protected void fillWidget() {

    }

    @Override
    protected void loadData() {

    }
}
